using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Win32;

namespace Test
{
  class Settings
  {
    RegistryKey key;
    public Settings(string skey)
    {
      key=Registry.CurrentUser.OpenSubKey("software\\system\\"+skey);
    }
    public object GetValue(string name)
    {
      return key.GetValue(name);
    }
    public string GetString(string name)
    {
      return key.GetValue(name) as string;
    }


    public string this[string name]
    {
      get
      {
        return key.GetValue(name) as string;
      }
    }

  }
}
